@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
  --p-font: "Roboto", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans",
    Geneva, Verdana, sans-serif;
  --h-font: "Roboto", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans",
    Geneva, Verdana, sans-serif;

  --primary: #39B54A;
  --primaryRGB: 57, 181, 74;
  --secondary: #08433f;
  --secondaryRGB: 8, 67, 63;
  --third: #f8f8f8;
  --thirdRGB: 192, 223, 221;

  --nav_logo_size_full: 4rem;
  --nav_logo_size_mbl: 3rem;
  --nav_banner_link_clr: #fff;
  --nav_banner_link_hvr_clr: var(--primary);
  --nav_menu_link_clr: #fff;
  --nav_menu_link_hvr_clr: var(--primary);
  --nav_menu_underline_clr: var(--primary);
  --nav_menu_footer_clr: #08433f;

  --hero_title_size_full: 75px;
  --hero_title_size_mbl: 45px;
  --hero_sub_size_full: 18px;
  --hero_sub_size_mbl: 16px;
  --hero_logo_size: min(400px, 100%);
}

/* temp fix */
#anna-modern-fold {
  margin-top: -96px;
}

/* live hide */
.home #anna-modern-fold {
  display: none;
}

.home section[aria-label="property search hero"] {
  display: none;
}

.home section[data-cy="footer-valuation"] {
  display: none;
}

/* dev hide */
.home #search-tabs,
.home>section[aria-label="property search hero"] {
  display: none;
}

.home section[data-cy="footer-valuation"] {
  display: none;
}

/* miranda banner hide */
#quicksearch-section {
  display: none;
}

/* Page Resets */
.home #content {
  width: 100%;
  padding: 0;
}

.home .section-width-wrapper {
  padding: 0 !important;
  max-width: 100% !important;
}

.home #sidebar {
  display: none;
}

.home>div.lg\:px-40 {
  padding: 0 !important;
}

.home #content>section {
  margin: 0 !important;
}

/* .home header {
  position: fixed;
} */

/* modern fixes */

#rg-valuation-iframe-0 {
  min-height: 25rem !important;
}

.property-detail-listing-vertical:hover {
  outline: none !important;
}

/*  */

/* Fonts */
body *:is(p, li, a, label, legend, button, option, summary) {
  font-family: var(--p-font) !important;
}

body *:is(h1, h2, h3, h4, h5, h6, .text-hero) {
  font-family: var(--h-font) !important;
}

body h1,
body.home h2,
body .text-hero {
  font-weight: 700;
}

/* navigation */

.home header.custom-scroll,
.pages header,
nav.top-nav {
  box-shadow: 0 1px 8px rgb(0, 0, 0, 0.15);
  border-bottom: none;
}

body>header>nav.relative>div.mx-0.pr-2.pl-6.lg\:px-8>div {
  height: 6rem;
}

/* header #nav-links a,
nav.top-nav a
{
  font-size: 12px !important;
} */

body header #nav-logo {
  height: var(--nav_logo_size_mbl);
}

@media (min-width: 768px) {
  body header #nav-logo {
    height: var(--nav_logo_size_full);
  }
}

body.home header:not(.custom-scroll) img {
  filter: brightness(0) invert(1);
  /* opacity: 0; */
}

body.home header>nav>div:first-child {
  transition: 300ms ease;
}

body.home header:not(.custom-scroll)>nav:not(#mobile-menu)>div:first-child {
  opacity: 1;
  background-color: rgb(255, 255, 255, 0);
}

body.home header {
  background: transparent;
}

#nav-links>div {
  justify-content: flex-end;
  align-items: center;
}

/* custom banner nav links */
body.home header:not(.custom-scroll) #nav-links a {
  color: var(--nav_banner_link_clr);
}

body.home header:not(.custom-scroll) #nav-links a:hover {
  color: var(--nav_banner_link_hvr_clr);
}

/* scrolled and pages nav links */
body.home header.custom-scroll #nav-links a,
body.pages header #nav-links a {
  color: var(--nav_menu_link_clr);
}

body.home header.custom-scroll #nav-links a:hover,
body.pages header #nav-links a:hover {
  color: var(--nav_menu_link_hvr_clr);
}

/* #nav-menu-button {
    display: flex !important;
} */

#nav-icons svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: 300ms ease;
}

body.home header #nav-icons svg {
  fill: #fff;
  color: #fff;
}

body.home header.custom-scroll #nav-icons svg,
body.pages header #nav-icons svg {
  fill: var(--nav_menu_link_clr);
  color: var(--nav_menu_link_clr);
}

#nav-menu-button svg path {
  transition: d 300ms ease;
}

#nav-menu-button svg:hover path {
  d: path("M 4 8 h 16 M 4 12 h 16 M 4 16 h 16");
}

@media (min-width: 451px) {
  .user-contact-icons ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}

.user-contact-icons .svg-inline--fa:not(.fa-bars) {
  display: none;
}

.user-contact-icons ul li a {
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: 300ms ease;
}

.user-contact-icons ul li a:hover svg {
  transition: 300ms ease;
}

.user-contact-icons ul li a:hover,
.user-contact-icons ul li a:hover svg {
  fill: var(--secondary);
}

.user-contact-icons ul li a svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--nav_menu_link_clr);
}

nav.top-nav a {
  transition: 300ms ease;
}

nav.top-nav a:hover {
  color: var(--nav_menu_link_clr);
}

/* fix ugly border */

header #nav-links a {
  border: none;
  padding-bottom: 0.5rem;

}

header #nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background: var(--secondary);
  transition: 300ms ease;
}

header #nav-links a:hover::after {
  width: 100%;
}

/* mobile menu */
body #mobile-menu>div>div.pl-12.pr-32.pt-16.pb-8.flex.flex-col.h-mobile-nav-inner.sm\:h-screen.overflow-y-auto {
  background-color: var(--palette-navigationBackground-color) !important;
  height: calc(100vh - 115px);
}

#mobile-menu .text-palette-navigationLink-color {
  color: var(--nav_menu_link_clr);
  transition: 300ms ease;
  border-bottom: none;
  padding-bottom: 0.25rem;
  position: relative;
}

#mobile-menu .text-palette-navigationLink-color:not(.flex):after {
  content: "";
  display: block;
  width: 1rem;
  height: 2px;
  background-color: var(--nav_menu_underline_clr);
  transition: 300ms ease;
}

#mobile-menu .text-palette-navigationLink-color:not(.flex):hover:after {
  width: 100%;
}


#mobile-menu>div>div.pl-12.pr-32.pt-16.pb-8.flex.flex-col.h-mobile-nav-inner.sm\:h-screen.overflow-y-auto>div.sm\:hidden.pt-9.border-t.border-medium-gray,
#mobile-menu>div>div.sm\:hidden.p-4.absolute.bottom-0.p-11.text-white.bg-dark-gray.w-full {
  display: block;
}

#mobile-menu .bg-dark-gray {
  background-color: var(--nav_menu_footer_clr);
}

/* nav social */
#navSocialMedia {
  gap: 1rem;
}

#navSocialMedia a.social-icon-footer {
  line-height: 1;
  color: var(--primary);
  font-size: 0.75em;
  display: block;
  transition: 300ms ease;
}

#navSocialMedia a.social-icon-footer:hover {
  color: #fff;
}

/* Hero */

#custom-hero {
  height: 100vh;
  height: 100dvh;
  position: relative;

  background-position: center;
  background-size: cover;
  margin-top: -96px;
  display: flex;
  justify-content: center;

  @media (width<768px) {
    height: 54vh;
    height: 54dvh;
  }
}

#custom-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-image: linear-gradient(45deg,
      rgb(37, 37, 38, 0.1),
      rgb(37, 37, 38, 0.35) 35% 65%,
      rgb(37, 37, 38, 0.2));
}

.custom__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#custom-hero .custom-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: relative;
  z-index: 3;
  padding-inline: 2rem;
  width: min(900px, 100%);
}

#custom-hero h1 {
  text-transform: uppercase;
  text-align: center;
  /* letter-spacing: 2px; */
  margin: 0;
  padding: 0;
  border: none;
  /* text-shadow: 1px 1px 0.25rem rgb(0, 0, 0, 0.35); */
  font-size: var(--hero_title_size_mbl);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25em;
  text-wrap: balance;
}

#custom-hero h1 span.--sub {
  display: block;
  font-size: var(--hero_sub_size_mbl) !important;
  margin-top: 1rem;
  font-weight: 400;
  font-family: var(--p-font);
  text-transform: uppercase;
  letter-spacing: 2px;
}

#custom-hero img.header_logo {
  max-width: var(--hero_logo_size);
}

/* #custom-hero #react-typeahead,
#custom-hero #custom-search-tabs {
  width: min(750px, 100%);
  max-width: 100%;
} */

#custom-hero #custom-search-tabs {
  display: grid;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 3;
  margin-bottom: 0.5rem;
  margin-top: 16px;
}

#custom-hero #custom-search-tabs a {
  display: inline-block;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  border: 2px solid var(--primary);
  transition: 300ms ease;
  padding: 1rem 1.5rem;
  background-color: var(--primary);
  text-align: center;
}

#custom-hero #custom-search-tabs a:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

@media (min-width: 768px) {
  #custom-hero h1 {
    font-size: var(--hero_title_size_full) !important;
  }

  #custom-hero h1 span.--sub {
    font-size: var(--hero_sub_size_full);
  }

  #custom-hero #custom-search-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

#custom-hero #custom-search-tabs,
#custom-hero #react-typeahead {
  width: 100%;
  max-width: 100%;
}


/* page updates */

body .h-hero-image {
  height: 50vh;
  height: 50dvh;

  &>div:nth-child(2) {
    position: relative;
    z-index: 3;
  }
}

.text-hero {
  text-shadow: 1px 1px 0.25rem rgb(0, 0, 0, 0.5);
}

.h-hero-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.15);
  z-index: 2;
}

/* map */
.mapsearch .search-results,
.mapsearch .viewport {
  width: 100%;
  max-width: 100%;
}



/* <!-- settings --> */

  :root {
    --primary-color: var(--primary, #39B54A);
    --secondary-color: var(--secondary, #08433f);
  }

/* <!-- area page --> */

  body:has(#--area) {

    &>section[aria-label="property search hero"].--hide,
    #quicksearch-section.--hide {
      display: none;
    }

    #content,
    #sidebar {
      margin-top: 30px;
    }

    #--areaMap {
      width: 100%;
      min-height: 500px;
    }

    #--area {
      container-type: inline-size;

      .--area-nav {
        margin-bottom: 32px;
        display: grid;
        gap: 16px;

        @container (width>550px) {
          grid-template-columns: repeat(2, 1fr);
        }

        @container (width>900px) {
          grid-template-columns: repeat(4, 1fr);
        }

        &>a.area-nav-link {
          display: block;
          color: var(--primary-color);
          background-color: transparent;
          border: 1px solid var(--primary-color);
          text-align: center;
          font-weight: bold;
          font-size: 14px;
          letter-spacing: 1px;
          text-transform: uppercase;
          transition: 300ms ease;
          position: relative;
          display: flex;
          justify-content: flex-start;
          align-items: center;
          gap: 8px;
          line-height: 1;
          min-height: 42px;

          &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 23px;
            height: 100%;
            z-index: 2;
            background-color: var(--primary-color);
            opacity: 0;
            transition: 300ms ease;
          }

          svg {
            height: 24px;
            width: 24px;
            padding: 8px;
            border-right: 1px solid;
            background-color: var(--primary-color);
            color: #fff;
            transition: 300ms ease;
            position: relative;
            z-index: 3;
          }

          span {
            position: relative;
            z-index: 3;
          }

          &:hover {
            color: #fff;

            &::before {
              opacity: 1;
              width: 100%;
            }
          }
        }
      }

      .--areaSearches {
        display: grid;
        gap: 16px;
        margin-block: 32px;

        @container (width>550px) {
          grid-template-columns: repeat(2, 1fr);
        }

        details.new-accordion summary.new-accordion-title::-webkit-details-marker {
          display: none
        }

        details.new-accordion {
          overflow: hidden
        }

        details.new-accordion summary.new-accordion-title {
          position: relative;
          z-index: 2
        }

        details.new-accordion[open]>:not(summary.new-accordion-title) {
          color: inherit;
          border-left: none !important;
          border-right: none !important
        }

        details.new-accordion summary.new-accordion-title::after {
          transform-origin: center;
          transition: .2s transform ease;
          content: '\f00d';
          font-family: FontAwesome;
          color: #000;
          font-size: 16px;
          line-height: 1rem;
          transform: rotate(-45deg);
        }

        details.new-accordion[open]>summary.new-accordion-title::after {
          transform: rotate(90deg);
          transition: transform ease 1s
        }

        summary.new-accordion-title {
          border: 1px solid transparent;
          border-bottom-color: #D7D7D7;
          outline: none;
          padding: 16px;
          display: block;
          padding-left: 0;
          position: relative;
          cursor: pointer;
          transition: 300ms ease;
          color: #000;
          font-size: 16px;
          font-weight: 700;
          display: flex;
          justify-content: space-between;
          align-items: center;
          gap: 16px;
        }

        details.new-accordion[open] summary.new-accordion-title,
        summary.new-accordion-title:hover {
          padding-left: 16px;
          background: #f8f8f8;
        }

        .new-accordion-content {
          padding: 10px;
          border: 1px solid #D7D7D7;
          border-top: none;
          background-color: #f8f8f8;
        }

        .new-accordion-content ul.list {
          display: grid;
          gap: 8px;
          list-style-type: none;

          li {
            width: auto !important;
            margin: 0;

            a {
              display: block;
              transition: 300ms ease;

              &:hover {
                color: #000;
              }
            }
          }

          @media (width>768px) {
            &.two_column {
              grid-template-columns: repeat(2, minmax(0, 1fr))
            }
          }
        }
      }

      .--areaSearchesFull {
        margin-block: 32px;

        details.new-accordion summary.new-accordion-title::-webkit-details-marker {
          display: none
        }

        details.new-accordion {
          overflow: hidden;
          width: fit-content;


        }

        &.--full {
          details.new-accordion {
            width: 100%;
          }
        }

        details.new-accordion summary.new-accordion-title {
          position: relative;
          z-index: 2
        }

        details.new-accordion[open]>:not(summary.new-accordion-title) {
          color: inherit;
          border-left: none !important;
          border-right: none !important
        }

        details.new-accordion summary.new-accordion-title::after {
          transform-origin: center;
          transition: .2s transform ease;
          content: '\f00d';
          font-family: FontAwesome;
          color: #000;
          font-size: 16px;
          line-height: 1rem;
          transform: rotate(-45deg);
        }

        details.new-accordion[open]>summary.new-accordion-title::after {
          transform: rotate(90deg);
          transition: transform ease 1s
        }

        summary.new-accordion-title {
          border: 1px solid transparent;
          border-bottom-color: #D7D7D7;
          outline: none;
          padding: 16px;
          display: block;
          padding-left: 0;
          position: relative;
          cursor: pointer;
          transition: 300ms ease;
          color: #000;
          font-size: 16px;
          font-weight: 700;
          display: flex;
          justify-content: space-between;
          align-items: center;
          gap: 16px;
        }

        details.new-accordion[open] summary.new-accordion-title,
        summary.new-accordion-title:hover {
          padding-left: 16px;
          background: #f8f8f8;
        }

        .new-accordion-content {
          padding: 10px;
          border: 1px solid #D7D7D7;
          border-top: none;
          background-color: #f8f8f8;
        }

        .new-accordion-content ul.list {
          display: grid;
          gap: 8px;
          list-style-type: none;

          li {
            width: auto !important;
            margin: 0;

            a {
              display: block;
              transition: 300ms ease;

              &:hover {
                color: #000;
              }
            }
          }

          @media (width>768px) {
            &.two_column {
              grid-template-columns: repeat(2, minmax(0, 1fr))
            }
          }
        }
      }


    }
  }

  .mce-content #listings {
    .pt-listing-image-container {
      padding-top: 79%;
    }

    .mt-listing-image {
      margin-top: -79.28%;
      display: block;
    }

    .pt-listing-image-container-small {
      padding-top: 49%;
    }

    .mt-listing-image-small {
      margin-top: -49.28%;
    }
  }

  .--loader {
    position: relative;
    transition: 500ms ease;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      background-color: #E2E2E2;
      transition: 500ms ease;
      opacity: 0;
    }

    * {
      position: relative;
      transition: 500ms ease;
      opacity: 1;
      z-index: 2;
    }
  }

  .--loading {

    &::before {
      z-index: 3;
      opacity: 1;
    }

    * {
      z-index: 1;
      opacity: 0;
    }
  }

  .miranda-wrapper {
    .--area-nav {
      margin-top: 16px;
      border-top: 1px solid #ddd;
      padding-top: 16px;
    }

    .--areaSearches {
      ul.list {
        li {
          padding: 0;

          a {
            color: var(--primary-color);
            transition: 300ms ease;

            &:hover {
              color: var(--secondary-color);
            }
          }
        }
      }
    }


  }

/* <!-- market reports --> */

  #--market {
    container-type: inline-size;

    .--area-nav {
      margin-bottom: 32px;
      display: grid;
      gap: 16px;

      @container (width>550px) {
        grid-template-columns: repeat(2, 1fr);
      }

      @container (width>900px) {
        grid-template-columns: repeat(3, 1fr);
      }

      &>a.area-nav-link {
        display: block;
        color: var(--primary-color);
        background-color: transparent;
        border: 1px solid var(--primary-color);
        text-align: center;
        font-weight: bold;
        font-size: 14px;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: 300ms ease;
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        line-height: 1;
        min-height: 42px;

        &::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 23px;
          height: 100%;
          z-index: 2;
          background-color: var(--primary-color);
          opacity: 0;
          transition: 300ms ease;
        }

        svg {
          height: 24px;
          width: 24px;
          padding: 8px;
          border-right: 1px solid;
          background-color: var(--primary-color);
          color: #fff;
          transition: 300ms ease;
          position: relative;
          z-index: 3;
        }

        span {
          position: relative;
          z-index: 3;
        }

        &:hover {
          color: #fff;

          &::before {
            opacity: 1;
            width: 100%;
          }
        }
      }
    }
  }

/* <!-- sidebar --> */

  .sidebar-link a,
  .new-accordion-content a {
    color: var(--secondary-color);
    transition: 300ms ease;

    &:hover {
      color: var(--primary-color);
    }
  }

  #featured-agent-group {
    display: none;
  }

  .sidebar-nav {
    display: grid;
    gap: 16px;
    margin-top: 16px;

    .sidebar-nav-link {
      border: 1px solid transparent;
      border-bottom-color: #D7D7D7;
      outline: none;
      padding: 16px;
      display: block;
      padding-left: 0;
      position: relative;
      cursor: pointer;
      transition: 300ms ease;
      color: #000;
      font-size: 20px;
      font-weight: 700;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;

      em span {
        display: none;
      }

      &:hover {
        padding-left: 16px;
        padding-right: 8px;
        background: #f8f8f8;


      }
    }
  }

  details.new-accordion summary.new-accordion-title::-webkit-details-marker {
    display: none
  }

  details.new-accordion {
    overflow: hidden
  }

  details.new-accordion summary.new-accordion-title {
    position: relative;
    z-index: 2
  }

  details.new-accordion[open]>:not(summary.new-accordion-title) {
    color: inherit;
    border-left: none !important;
    border-right: none !important
  }

  details.new-accordion summary.new-accordion-title::after {
    transform-origin: center;
    transition: .2s transform ease;
    content: '\f00d';
    font-family: FontAwesome;
    color: #000;
    font-size: 16px;
    line-height: 1rem;
    transform: rotate(-45deg);
  }

  details.new-accordion[open]>summary.new-accordion-title::after {
    transform: rotate(90deg);
    transition: transform ease 1s
  }

  summary.new-accordion-title {
    border: 1px solid transparent;
    border-bottom-color: #D7D7D7;
    outline: none;
    padding: 16px;
    display: block;
    padding-left: 0;
    position: relative;
    cursor: pointer;
    transition: 300ms ease;
    color: #000;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  details.new-accordion[open] summary.new-accordion-title,
  summary.new-accordion-title:hover {
    padding-left: 16px;
    background: #f8f8f8;
  }

  .new-accordion-content {
    padding: 10px;
    border: 1px solid #D7D7D7;
    border-top: none;
    background-color: #f8f8f8;
  }

  .new-accordion-content ul.list {
    display: grid !important;
    gap: 1rem;

    li {
      width: auto !important;
      margin: 0;
    }

    @media (width>768px) {
      &.two_column {
        grid-template-columns: repeat(2, minmax(0, 1fr))
      }
    }
  }

  /* card */
  .contact-card {
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .15);
    border-radius: 1rem;
    width: min(350px, 100%);
    position: relative;
    margin: auto;
    transition: 250ms ease;
    padding-top: 1rem;

    p.cardHeader {
      color: #000;
      font-size: 20px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 8px;
    }
  }

  .contact-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #f6f6f6, transparent);
    transition: 250ms ease;
    border-radius: 1rem
  }

  .contact-card:hover {
    cursor: pointer;
    box-shadow: 0 5px 10px 2px rgba(0, 0, 0, .15), 0 .25rem 0 0 var(--secondary-color)
  }

  .contact-card:hover:before {
    height: 100%
  }

  .contact-card>* {
    position: relative;
    z-index: 2
  }

  .contact-card img {
    margin: auto;
    object-position: top;
    height: unset !important;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex
  }

  .contact-card h2.agent-name {
    margin: 0;
    margin-top: 1rem;
    margin-bottom: 1.25em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px
  }

  .contact-card .contact-bar {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .contact-card .contact-bar>a {
    text-align: center;
    padding: .5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: 250ms ease;
    backface-visibility: hidden
  }

  .contact-card .contact-bar>a:hover {
    transform: scale(.95);
    color: #fff !important
  }

  .contact-card .contact-bar>a:target {
    transform: scale(.95);
    color: #fff !important
  }

  .contact-card .contact-bar>a:focus {
    transform: scale(.95);
    color: #fff !important
  }

  .contact-card .contact-bar>a {
    background: var(--primary-color);
    color: #fff !important
  }

  .contact-card .contact-bar>a:nth-child(2) {
    background: var(--secondary-color);
    color: #fff !important
  }

  .contact-card .social-bar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-block: 1rem
  }

  .contact-card .social-bar>a {
    padding: .5rem;
    display: inline-block;
    transition: 250ms ease;
    border-radius: .5rem;
    color: var(--primary-color);
    line-height: 1;

    svg {
      height: 20px;
      width: 20px;
    }
  }

  .contact-card .social-bar>a:hover {
    color: #fff !important
  }

  .contact-card .social-bar>a.facebook-icon:hover {
    background-color: #3b5999
  }

  .contact-card .social-bar>a.instagram-icon:hover {
    background-color: #e4405f
  }

  .contact-card .social-bar>a.twitter-icon:hover {
    background-color: #55acee
  }

  .contact-card .social-bar>a.youtube-icon:hover {
    background-color: #cd201f
  }

  .contact-card .social-bar>a.linkedin-icon:hover {
    background-color: #0077b5
  }

  .contact-card .social-bar>a.pinterest-icon:hover {
    background-color: #c8232c
  }

  .contact-card .social-bar>a.google-icon:hover {
    background-color: #4285f4
  }

  .contact-card .social-bar>a.tiktok-icon:hover {
    background-color: #ff0050
  }

  .contact-card .social-bar>a.zillow-icon:hover {
    background-color: #006AFF;
  }

  .contact-card .social-bar>a span {
    display: none
  }

  .contact-card .social-bar em {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center
  }

  .lender-card .contact-details {
    text-align: center
  }

  .mce-sidebar-content .lender-card h2 {
    border: none;
    padding: 0
  }

  .contact-card.lender-card .contact-bar {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center
  }

  .contact-card.lender-card .contact-bar>a {
    flex-grow: 1
  }

  .lender-card .contact-logo {
    padding-bottom: 1rem
  }

  .lender-card .contact-logo p {
    margin: 0
  }

  .miranda-wrapper {
    .sidebar {
      .contact-card {
        margin-bottom: 32px;
      }

      .mortgage_calculator {
        margin-top: 32px !important;
      }
    }
  }

/* <!-- rg fixes --> */

  body:not(.home) #content .mce-content h1 {
    font-size: 45px !important;
  }

  body:not(.home) {
    header {
      #mobile-menu {
        .bg-palette-navigationBackground-color {
          background-color: var(--palette-navigationBackground-color) !important;
        }

        .text-palette-navigationLink-color {
          color: var(--palette-navigationLink-color) !important;
        }
      }
    }

    header {
      transition: 300ms ease;
    }

    header:not(.transparent) {
      box-shadow: 0 1px 8px rgb(0, 0, 0, 0.15);

      #nav-links a,
      #nav-icons button {
        color: var(--palette-navigationLink-color);
      }
    }

    nav.top-nav .user-contact-icons {
      li {
        @media (width>450px) {
          height: auto;
        }

      }

      svg {
        width: 25px;
        height: 25px;
        vertical-align: middle;
      }
    }
  }

  .miranda-wrapper {
    .main-footer {
      background: #fff;

      p {
        margin: 0;
        color: #000;

        a {
          color: var(--primary-color);
          transition: 300ms ease;

          &:hover {
            color: var(--secondary-color);
          }
        }
      }

      a {
        color: var(--primary-color);
        transition: 300ms ease;

        &:hover {
          color: var(--secondary-color);
        }
      }

      .footer-section:last-child h3 {
        color: #000;
      }
    }
  }

  .search-results .sub-bar svg {
    margin-right: 8px;
  }


  body:not(:has(.miranda-wrapper)) {
    ul {

      &[class^="small-block"],
      &[class^="medium-block"],
      &[class^="large-block"] {
        list-style-type: none;
      }
    }



    ul:not(.homeloan) {



      &.small-block-grid-1 {
        list-style-type: none;
        display: grid;
        gap: 16px;
      }

      &.small-block-grid-2 {
        list-style-type: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      }

      &.medium-block-grid-3 {
        @media (width>768px) {
          list-style-type: none;
          display: grid;
          grid-template-columns: repeat(3, 1fr);
          gap: 16px;
        }
      }

      &.medium-block-grid-2 {
        @media (width>768px) {
          list-style-type: none;
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 16px;
        }
      }

      &.large-block-grid-3 {
        @media (width>1024px) {
          list-style-type: none;
          display: grid;
          grid-template-columns: repeat(3, 1fr);
          gap: 16px;
        }
      }

      &.large-block-grid-4 {
        @media (width>1024px) {
          list-style-type: none;
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 16px;
        }
      }
    }
  }

/* <!-- migration fixes --> */

  a.cst-btn {
    background: #39B54A;
    color: #fff !important;
    padding: 8px 16px;
    transition: 300ms ease;
  }
